package oop5.sonar;

public class Fish implements Swimming {
   private String kind;    //品种

    public Fish(String kind) {
        this.kind = kind;
    }

    @Override
    public void swim() {
        System.out.println("一只"+kind+"在水中游泳");
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }
}
